﻿using BCCommon.Extensions;
using BCCommon.TMS.Driver;
using System;

namespace BCDto.TMS.LearnTrain.PendingLearningVehicle
{
    public class PendingLearningVehicleViewDto : PendingLearningVehicleDto
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        public string VehicleNo { get; set; }
        /// <summary>
        /// 司机名称
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 角色(货车司机,跑腿,骑手)
        /// </summary>
        public DriverRoleType? Role { get; set; }
        /// <summary>
        /// 司机角色
        /// </summary>
        public string RoleStr => Role.HasValue ? Role.GetDescriptionString() : string.Empty;
        /// <summary>
        /// 培训点id
        /// </summary>
        public long? TrainingSiteConfigId { get; set; }
        /// <summary>
        /// 培训点名称
        /// </summary>
        public string TrainingSiteName { get; set; }
        /// <summary>
        /// 培训点地址
        /// </summary>
        public string TrainingSiteAddress { get; set; }
        /// <summary>
        /// 培训点标题
        /// </summary>
        public string TrainingTitle { get; set; }
        /// <summary>
        /// 培训开始日期
        /// </summary>
        public DateTime? TrainingStartDate { get; set; }
        /// <summary>
        /// 培训结束日期
        /// </summary>
        public DateTime? TrainingEndDate { get; set; }
        /// <summary>
        /// 培训讲师
        /// </summary>
        public string TrainingTeacher { get; set; }
        /// <summary>
        /// 培训期数
        /// </summary>
        public string TrainingPeriods { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }
        /// <summary>
        /// 是否允许操作
        /// </summary>
        public bool IsAllowOperate { get; set; }
    }
}
